package com.xgf.util;

/**
 * Created by Administrator on 2017/5/5.
 */
public class SystemUtil {

    public static String testSystem(){
        String OSName = System.getProperties().getProperty("os.name");
        return OSName;
    }

    public static boolean isLinux(){
        return testSystem().startsWith("Lin",0);
    }

    /**
     * 判断是否为Windows系统
     * @return
     */
    public static boolean isWindow(){
        return testSystem().startsWith("Win",0);
    }


}
